package com.chenyue.cm.match.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JdMatchFormatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JdMatchFormatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMatchIdIsNull() {
            addCriterion("match_id is null");
            return (Criteria) this;
        }

        public Criteria andMatchIdIsNotNull() {
            addCriterion("match_id is not null");
            return (Criteria) this;
        }

        public Criteria andMatchIdEqualTo(Integer value) {
            addCriterion("match_id =", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdNotEqualTo(Integer value) {
            addCriterion("match_id <>", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdGreaterThan(Integer value) {
            addCriterion("match_id >", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("match_id >=", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdLessThan(Integer value) {
            addCriterion("match_id <", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdLessThanOrEqualTo(Integer value) {
            addCriterion("match_id <=", value, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdIn(List<Integer> values) {
            addCriterion("match_id in", values, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdNotIn(List<Integer> values) {
            addCriterion("match_id not in", values, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdBetween(Integer value1, Integer value2) {
            addCriterion("match_id between", value1, value2, "matchId");
            return (Criteria) this;
        }

        public Criteria andMatchIdNotBetween(Integer value1, Integer value2) {
            addCriterion("match_id not between", value1, value2, "matchId");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderIsNull() {
            addCriterion("arrange_order is null");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderIsNotNull() {
            addCriterion("arrange_order is not null");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderEqualTo(Boolean value) {
            addCriterion("arrange_order =", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderNotEqualTo(Boolean value) {
            addCriterion("arrange_order <>", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderGreaterThan(Boolean value) {
            addCriterion("arrange_order >", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderGreaterThanOrEqualTo(Boolean value) {
            addCriterion("arrange_order >=", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderLessThan(Boolean value) {
            addCriterion("arrange_order <", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderLessThanOrEqualTo(Boolean value) {
            addCriterion("arrange_order <=", value, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderIn(List<Boolean> values) {
            addCriterion("arrange_order in", values, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderNotIn(List<Boolean> values) {
            addCriterion("arrange_order not in", values, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderBetween(Boolean value1, Boolean value2) {
            addCriterion("arrange_order between", value1, value2, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andArrangeOrderNotBetween(Boolean value1, Boolean value2) {
            addCriterion("arrange_order not between", value1, value2, "arrangeOrder");
            return (Criteria) this;
        }

        public Criteria andPromotionNumIsNull() {
            addCriterion("promotion_num is null");
            return (Criteria) this;
        }

        public Criteria andPromotionNumIsNotNull() {
            addCriterion("promotion_num is not null");
            return (Criteria) this;
        }

        public Criteria andPromotionNumEqualTo(Integer value) {
            addCriterion("promotion_num =", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumNotEqualTo(Integer value) {
            addCriterion("promotion_num <>", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumGreaterThan(Integer value) {
            addCriterion("promotion_num >", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("promotion_num >=", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumLessThan(Integer value) {
            addCriterion("promotion_num <", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumLessThanOrEqualTo(Integer value) {
            addCriterion("promotion_num <=", value, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumIn(List<Integer> values) {
            addCriterion("promotion_num in", values, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumNotIn(List<Integer> values) {
            addCriterion("promotion_num not in", values, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumBetween(Integer value1, Integer value2) {
            addCriterion("promotion_num between", value1, value2, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionNumNotBetween(Integer value1, Integer value2) {
            addCriterion("promotion_num not between", value1, value2, "promotionNum");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreIsNull() {
            addCriterion("promotion_score is null");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreIsNotNull() {
            addCriterion("promotion_score is not null");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreEqualTo(Integer value) {
            addCriterion("promotion_score =", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreNotEqualTo(Integer value) {
            addCriterion("promotion_score <>", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreGreaterThan(Integer value) {
            addCriterion("promotion_score >", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("promotion_score >=", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreLessThan(Integer value) {
            addCriterion("promotion_score <", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreLessThanOrEqualTo(Integer value) {
            addCriterion("promotion_score <=", value, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreIn(List<Integer> values) {
            addCriterion("promotion_score in", values, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreNotIn(List<Integer> values) {
            addCriterion("promotion_score not in", values, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreBetween(Integer value1, Integer value2) {
            addCriterion("promotion_score between", value1, value2, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andPromotionScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("promotion_score not between", value1, value2, "promotionScore");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIsNull() {
            addCriterion("update_type is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIsNotNull() {
            addCriterion("update_type is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeEqualTo(Boolean value) {
            addCriterion("update_type =", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotEqualTo(Boolean value) {
            addCriterion("update_type <>", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeGreaterThan(Boolean value) {
            addCriterion("update_type >", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeGreaterThanOrEqualTo(Boolean value) {
            addCriterion("update_type >=", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeLessThan(Boolean value) {
            addCriterion("update_type <", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeLessThanOrEqualTo(Boolean value) {
            addCriterion("update_type <=", value, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeIn(List<Boolean> values) {
            addCriterion("update_type in", values, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotIn(List<Boolean> values) {
            addCriterion("update_type not in", values, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeBetween(Boolean value1, Boolean value2) {
            addCriterion("update_type between", value1, value2, "updateType");
            return (Criteria) this;
        }

        public Criteria andUpdateTypeNotBetween(Boolean value1, Boolean value2) {
            addCriterion("update_type not between", value1, value2, "updateType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}